package com.zh.mediaservice.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface UserChatDoctorMapper {

    @Insert("insert into user_chat_doctor values (#{uid},#{did},#{isUser})")
     void insert(@Param("uid") Long uid, @Param("did") Long did, @Param("isUser") boolean isUser);

    @Select("select did from user_chat_doctor where uid=#{uid} and isUser=true")
    List<Long> getDoctorIdListByUId(Long uid);
}
